@/*
表单中input框标签中各个参数的说明:

hidden : input hidden框的id
id : input框id
name : input框名称
readonly : readonly属性
clickFun : 点击事件的方法名
style : 附加的css属性
@*/
<div class="form-group">
    <label class="control-label
@if(isNotEmpty(labelWidth)){
    ${labelWidth}
@}else{
    col-sm-3
@}
">${name}</label>
    <div class="
@if(isNotEmpty(inputWidth)){
    ${inputWidth}
@}else{
    col-sm-9
@}
">
        @var inputType = "text";
        @if(isNotEmpty(type)){
        @ inputType = type;
        @}

        @if(inputType == "select"){
        <select class="form-control" id="${id}" name="${id}"
                @if(isNotEmpty(disabled)){
                disabled="${disabled}"
                @}
                @if(isNotEmpty(multiple)){
                multiple="${multiple}"
                @}
        >
            @if(isNotEmpty(items)){
            @for (item in items) {
            <option id="${item.key}" value="${item.key}">${item.value}</option>
            @}
            @}
        </select>
        @} else {
        <input
                class="form-control"
                type="${inputType}" id="${id}" name="${id}"
                @if(isNotEmpty(value)){
                value="${tool.timeType(value)}"
                @}
                @if(isNotEmpty(checked)){
                checked="${checked}"
                @}
                @if(isNotEmpty(readonly)){
                readonly="${readonly}"
                @}
                @if(isNotEmpty(clickFun)){
                onclick="${clickFun}"
                @}
                @if(isNotEmpty(style)){
                style="${style}"
                @}
                @if(isNotEmpty(disabled)){
                disabled="${disabled}"
                @}
        >
        @}

        @if(isNotEmpty(hidden)){
        <input class="form-control" type="hidden" id="${hidden}" value="${hiddenValue!}">
        @}

        @if(isNotEmpty(selectFlag)){
        <div id="${selectId}" style="display: none; position: absolute; z-index: 200;">
            <ul id="${selectTreeId}" class="ztree tree-box" style="${selectStyle!}"></ul>
        </div>
        @}
    </div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
<div class="hr-line-dashed"></div>
@}


